.class Lcom/brixd/niceapp/community/activity/AuthActivity$3$1;
.super Ljava/lang/Object;
.source "AuthActivity.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/community/activity/AuthActivity$3;->onClick(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$1:Lcom/brixd/niceapp/community/activity/AuthActivity$3;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/activity/AuthActivity$3;)V
    .registers 2
    .param p1, "this$1"    # Lcom/brixd/niceapp/community/activity/AuthActivity$3;

    .prologue
    .line 118
    iput-object p1, p0, Lcom/brixd/niceapp/community/activity/AuthActivity$3$1;->this$1:Lcom/brixd/niceapp/community/activity/AuthActivity$3;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 3
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    .line 146
    const v0, 0x7f0c004e

    invoke-static {v0}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    .line 147
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 118
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/community/activity/AuthActivity$3$1;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 8
    .param p1, "arg0"    # Lorg/json/JSONObject;
    .param p2, "arg1"    # Lretrofit/client/Response;

    .prologue
    .line 122
    const-string v2, "code"

    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v1

    .line 123
    .local v1, "resultCode":I
    const/16 v2, 0xc8

    if-ne v1, v2, :cond_5f

    .line 124
    const v2, 0x7f0c0036

    invoke-static {v2}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    .line 125
    const-string v2, "user_info"

    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    invoke-static {v2}, Lcom/brixd/niceapp/service/UserService;->saveUserModel(Lorg/json/JSONObject;)V

    .line 127
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/AuthActivity$3$1;->this$1:Lcom/brixd/niceapp/community/activity/AuthActivity$3;

    iget-object v2, v2, Lcom/brixd/niceapp/community/activity/AuthActivity$3;->this$0:Lcom/brixd/niceapp/community/activity/AuthActivity;

    invoke-virtual {v2}, Lcom/brixd/niceapp/community/activity/AuthActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "GotoCommunity"

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v2

    if-eqz v2, :cond_55

    .line 128
    new-instance v0, Landroid/content/Intent;

    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/AuthActivity$3$1;->this$1:Lcom/brixd/niceapp/community/activity/AuthActivity$3;

    iget-object v2, v2, Lcom/brixd/niceapp/community/activity/AuthActivity$3;->this$0:Lcom/brixd/niceapp/community/activity/AuthActivity;

    # invokes: Lcom/brixd/niceapp/community/activity/AuthActivity;->getContext()Landroid/content/Context;
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/AuthActivity;->access$200(Lcom/brixd/niceapp/community/activity/AuthActivity;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/brixd/niceapp/activity/NiceAppContentActivity;

    invoke-direct {v0, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 129
    .local v0, "intent":Landroid/content/Intent;
    const-string v2, "TargetFragment"

    sget-object v3, Lcom/brixd/niceapp/activity/NiceAppContentActivity$TargetFragment;->Community:Lcom/brixd/niceapp/activity/NiceAppContentActivity$TargetFragment;

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 130
    const-string v2, "AutoPublish"

    const/4 v3, 0x1

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 131
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/AuthActivity$3$1;->this$1:Lcom/brixd/niceapp/community/activity/AuthActivity$3;

    iget-object v2, v2, Lcom/brixd/niceapp/community/activity/AuthActivity$3;->this$0:Lcom/brixd/niceapp/community/activity/AuthActivity;

    invoke-virtual {v2, v0}, Lcom/brixd/niceapp/community/activity/AuthActivity;->startActivity(Landroid/content/Intent;)V

    .line 136
    .end local v0    # "intent":Landroid/content/Intent;
    :goto_4d
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/AuthActivity$3$1;->this$1:Lcom/brixd/niceapp/community/activity/AuthActivity$3;

    iget-object v2, v2, Lcom/brixd/niceapp/community/activity/AuthActivity$3;->this$0:Lcom/brixd/niceapp/community/activity/AuthActivity;

    invoke-virtual {v2}, Lcom/brixd/niceapp/community/activity/AuthActivity;->finish()V

    .line 142
    :goto_54
    return-void

    .line 133
    :cond_55
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/AuthActivity$3$1;->this$1:Lcom/brixd/niceapp/community/activity/AuthActivity$3;

    iget-object v2, v2, Lcom/brixd/niceapp/community/activity/AuthActivity$3;->this$0:Lcom/brixd/niceapp/community/activity/AuthActivity;

    const/16 v3, 0xa

    invoke-virtual {v2, v3}, Lcom/brixd/niceapp/community/activity/AuthActivity;->setResult(I)V

    goto :goto_4d

    .line 137
    :cond_5f
    const/16 v2, 0xca

    if-ne v1, v2, :cond_6a

    .line 138
    const v2, 0x7f0c0030

    invoke-static {v2}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    goto :goto_54

    .line 140
    :cond_6a
    const v2, 0x7f0c0034

    invoke-static {v2}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    goto :goto_54
.end method
